<?php

/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

/**
 * Short description for file
 *
 * PHP version 5.3.+
 *
 * @category   
 * @package    
 * @author     Marius Schmidt <marius.schmidt@gridground.de>
 * @copyright  2010-2012 Gridground UG (haftungsbeschränkt)
 * @license    http://www.gridground.de/license/brickscout.txt
 * @version    GIT: $Id$
 * @link       
 * @see        
 * @since      File available since 
 */

/**
 * Short description for class
 *
 * @category   
 * @package    
 * @author     Marius Schmidt <marius.schmidt@gridground.de>
 * @copyright  2010-2012 Gridground UG (haftungsbeschränkt)
 * @license    http://www.gridground.de/license/brickscout.txt
 * @version    Release: @package_version@
 * @link       
 * @see        
 * @since      Class available since Release 
 */
abstract class Economic_ObjectAbstractImpl implements Economic_Object {

    /**
     *
     * Determines if two Economic entities are equal
     * 
     * @param Economic_Entity $entity
     * @return bool TRUE if all entity attributes are equal, FALSE otherwise
     */
    public function equals(Economic_Entity $entity) {
        return ($this == $entity);
    }

    /**
     *
     * Returns an unique hash value for this entity
     * 
     * @return string The objects hash value
     */
    public function getHashCode() {
        return spl_object_hash($this);
    }

}
